package extract.helper;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by Common on 8/21/16.
 */
public class TransactionHelper {
    static final Logger logger = LoggerFactory.getLogger(TransactionHelper.class);

    public static void GCAndSleep(Integer sleep){
        System.gc();
        try {
            Thread.sleep(sleep);
        } catch (InterruptedException e) {
            //e.printStackTrace();
            logger.error("Thead.sleep Interuptted!");
        }
    }
}
